package com.itheima;

public class Demo02 {
    public static void main(String[] args) {
        A a = new A();
        a.sing();
        B b = new B();
        b.sing();
        C c = new C();
        c.sing();

    }

}
class A {

public void sing(){
    System.out.println("只因你太美");
}
}

class B extends A{


}

class C extends B{

}
